package cn.hp.mapper;

import cn.hp.pojo.TblCoupon;
import cn.hp.pojo.TblCouponSendInfo;
import cn.hp.pojo.TblUserCoupon;
import cn.hp.pojo.vo.CouponSendInfoVO;
import cn.hp.pojo.vo.CouponVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CouponMapper {
    List<CouponVO> findAllByConditions(String couponName);

    int insert(TblCoupon tblCoupon);

    List<CouponSendInfoVO> findAllSend();

    int add(TblCouponSendInfo tblCouponSendInfo);

    List<TblCouponSendInfo> findAllSendList();

    void addUserCoupon(TblUserCoupon tblUserCoupon);

    int findCountByCouponIdAndCustomerId(@Param("couponId") Integer couponId, @Param("customerId") Integer id);
}
